package com.aya.export.model;

import java.util.List;

public class PageResult<T> {
    private List<T> list;     // 当前页数据列表‌:ml-citation{ref="2,3" data="citationList"}
    private int totalPages;   // 总页数‌:ml-citation{ref="2" data="citationList"}
    private long totalItems;  // 总数据量‌:ml-citation{ref="2,3" data="citationList"}

    public Boolean isEmpty() {
        return list == null || list.isEmpty();
    }
    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    public int getTotalPages() {
        return totalPages;
    }

    public void setTotalPages(int totalPages) {
        this.totalPages = totalPages;
    }

    public long getTotalItems() {
        return totalItems;
    }

    public void setTotalItems(long totalItems) {
        this.totalItems = totalItems;
    }

    // Getter/Setter省略
}
